<script setup lang="ts">
import { RouterLink } from 'vue-router'
import { routes } from '@/router'
defineOptions({
    name: 'MainNav',
})
</script>
<template>
    <nav>
        <template v-for="route in routes" :key="route.path">
            <RouterLink :to="route.path">{{ route.tabName }}</RouterLink>
        </template>
    </nav>
</template>

<style>
nav {
    width: 100%;
    font-size: 12px;
    text-align: center;
    margin-top: 2rem;
    display: flex;
}

nav a.router-link-exact-active {
    color: var(--color-text);
}

nav a.router-link-exact-active:hover {
    background-color: transparent;
}

nav a {
    display: inline-block;
    padding: 0 1rem;
}
</style>
